package com.pzh.logistics.mbg.mapper;

import com.pzh.logistics.mbg.model.Address;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface AddressMapper {
    int deleteByPrimaryKey(Integer addressId);

    int insert(Address record);

    int insertSelective(Address record);

    Address selectByPrimaryKey(Integer addressId);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);

    List<Address> findByUserId(Integer userId);

    int deleteByAddressIdAndUserId(Integer addressId, Integer userId);

    int updateByAddressIdAndUserId(Address address);

    Address findByAddressIdAndUserId(Integer addressId, Integer userId);

    Address selectRecipientAddressByOrderId(Integer orderId);

}